package corej.course.gui;

import javax.swing.*;
import java.awt.*;

public class TestJComponent {
    public static void main(String[] args) {
        JFrame f = new JFrame("");
        f.setSize(600, 400);

        JPanel panel = new JPanel();
        panel.setLayout(new GridLayout(1, 3));

        JTextField jtf = new JTextField();
        JPasswordField jpf = new JPasswordField();
        JComboBox jcb = new JComboBox();
        jcb.addItem("����");
        jcb.addItem("�Ϻ�");
        jcb.addItem("����");
        jcb.addItem("���");

        panel.add(jtf);
        panel.add(jpf);
        panel.add(jcb);

        f.add(panel, "North");

        JTextArea jta = new JTextArea();

        JScrollPane jsp = new JScrollPane(jta);

        f.add(jsp);

        f.setVisible(true);

    }
}
